import os

def get_file_list(dir="samples", extension="md") -> list[str]:
    files = []
    for f in os.listdir(dir):
        if f.endswith(f".{extension}"):
            path = os.path.join(dir, f)
            files.append(path)
    return files


def create_collection_name(path: str) -> str:
    # generate collection name
    filename = os.path.basename(path)
    
    c = filename.lower()
    c = c.replace(" ", "_")
    c = c.replace("-", "_")
    c = c.replace(".", "_")
    
    return c


if __name__ == "__main__":
    print(get_file_list())
